import { Module } from '@nestjs/common';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';
import { UsersModule } from 'src/users/users.module';
import { jwtConstants } from './constants';
import {JwtModule} from '@nestjs/jwt';

@Module({
  imports:[UsersModule,
  JwtModule.register({
    secret: jwtConstants.secret,
    signOptions:{expiresIn:'10s'}
  })
  ],
  controllers: [AuthController],
  providers: [AuthService]
})
export class AuthModule {}
